package com.zhiyou.hospital.ssh.dao.impl;

import com.zhiyou.hospital.ssh.dao.IPermissionDao;
import com.zhiyou.hospital.ssh.model.PermissionModel;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhouyanchao on 2017/10/19.
 * Descr:
 */
@Repository
public class PermissionDaoImpl extends BaseDaoImpl<PermissionModel> implements IPermissionDao {
	@Override
	public List<PermissionModel> queryAllPermissions() {

		List<PermissionModel> permissionModels = factory.getCurrentSession().createQuery("from PermissionModel").list();

		return permissionModels;
	}
}
